package com.zg.message.runner;

import com.zg.message.task.EmailMsgSendTask;
import com.zg.message.task.SmsMsgSendTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/7/9 21:15
 */
@Component
public class MessageRunner implements CommandLineRunner {

    @Autowired
    private EmailMsgSendTask sendTask;

    @Autowired
    private SmsMsgSendTask msgSendTask;
    @Override
    public void run(String... args) throws Exception {
       //sendTask.processNewMessages();
        //msgSendTask.processNewMessages();
    }
}
